<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
$this->load->helper('url');
?>	<table id="tt" class="easyui-datagrid"></table>
	
	
	<div id="tb" style="padding:10px;5px;height:auto">
		<div>
			订单号: <input id="id" class="easyui-textbox" style="width:80px">
			用户名: <input id="username" class="easyui-textbox" style="width:100px">
			日期 从: <input id="start" class="easyui-datebox" style="width:100px">
			到: <input id="end" class="easyui-datebox" style="width:100px">
			状态：
			<select id="status" class="easyui-combobox" style="width:100px">
				<option value="-1">全部</option>
				<option value="0">进行中</option>
				<option value="1">已结束</option>
				<option value="2">已撤销</option>
			</select>
			<a href="#" onclick="doSearch()" class="easyui-linkbutton" iconCls="icon-search">搜索</a>
			<script type="text/javascript">
			function doSearch(){
				$('#tt').datagrid('load',{
					id: $('#id').val(),
					username: $('#username').val(),
					start: $('#start').val(),
					end: $('#end').val(),
					status: $('#status').val()
				});
			}
			</script>
		</div>
	</div>
	<div id="win"></div>

<script language="javascript">

$(function(){
	$('#tt').datagrid({
		url:'<?php echo site_url('support/data');?>',
		pagination:true,
		pageSize:20,
		toolbar:'#tb',
		checkbox:true,
		fit:true,
		border:false,
		idField:'id',
		'columns':[[
			{field:'ck',checkbox:'true'},
			{field:'no',width:'9%',title:'订单号'},
			{field:'username',width:'20%',title:'会员帐号'},
			{field:'item_name',width:'20%',title:'项目名称'},
			{field:'amount',width:'15%',title:'支付金额'},
			{field:'coin_name',width:'15%',title:'支付方式'},
			{field:'add_time',width:'15%',title:'时间'},
		]],
		onLoadSuccess:function(data){$(".list_link").linkbutton()}
	});
});

</script>